﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="~/favicon.ico" />
    <title>@(ViewBag.Title.Length > 1 ? ViewBag.Title + " - " : "")Lunch Command</title>
    @Styles.Render("~/Content/css")
    @Scripts.Render("~/bundles/modernizr")
    @RenderSection("styles", false)
</head>
<body>
    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"></button>
                @if (ViewBag.DisplayNavbar == null || ViewBag.DisplayNavbar)
                {
                    <a href="@Url.Action("Index", "Home")"><span class="navbar-brand">Lunch Command</span> <img class="navbar-brand" src="~/Content/bgr.png" height="30" /></a>
                }
                else
                {
                    <span class="navbar-brand">Lunch Command</span>
                }
            </div>@if (ViewBag.DisplayNavbar == null || ViewBag.DisplayNavbar)
            {
                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li>@Html.ActionLink("Lunchtime!", "Index", "Home")</li>
                        <li>@Html.ActionLink("Manage Venues", "Index", "Venues")</li>
                        <li>@Html.ActionLink("Historic Lunches", "Index", "Lunches")</li>
                        <li>@Html.ActionLink("Luncher Leaderboards", "Index", "Users")</li>
                        <li>@Html.ActionLink("Algorithm", "Algorithm", "Home")</li>
                    </ul>
                </div>
            }
        </div>
    </div>
    <div class="site-background"></div>
    <div class="container body-content">
        @RenderBody()
        <hr />
        <footer>
            <p>LunchCommand version @ViewBag.Version    |   Source code available at <a href="https://lunchcommand.codeplex.com/">CodePlex</a>
            <br/>  &copy; @DateTime.Now.Year Nathan Daniels.  |  Glyphs from <a href="http://glyphicons.com/">Glyphicons</a></p>
        </footer>
    </div>

    @Scripts.Render("~/bundles/jquery")
    @Scripts.Render("~/bundles/bootstrap")
    @Scripts.Render("~/Scripts/LunchCommand.js")

    <script>
        LunchCommand.BaseService.BaseUrl = "@Url.Content("~/api/")";
    </script>

    @RenderSection("scripts", required: false)
</body>
</html>
